import dayjs from 'dayjs'

/**
 * Formatting time
 */
 export const formatDate = (value, fmt) => {
  fmt = fmt || 'YYYY-MM-DD HH:mm:ss'
  if (value === null) {
    return '-'
  } else {
    return dayjs(value).format(fmt)
  }
}
